package com.us.usws.site.console.action;

import com.opensymphony.xwork2.ActionSupport;

public class IndexAction extends ActionSupport {

	private static final long serialVersionUID = 1L;

	//@Inject
	//private UserROService service;

	//private static Log log = LogFactory.getFactory().getInstance(IndexAction.class);

	/**
	 * main handling method of struts2
	 */
	public String execute() {

		//		WebContext wc = new WebContext(ServletActionContext.getRequest(), ServletActionContext.getResponse());
		//
		//		//check user.
		//		DOUser user = wc.getUser();
		//		if (user == null) {
		//			//debug purpose, using default user
		//			if (SiteConstants.IS_DEBUG) {
		//				User u = service.getUserByLoginName(SiteConstants.AUTO_LOGIN_NAME);
		//				wc.setUser(user);
		//				ServletActionContext.getRequest().getSession().setAttribute(SiteConstants.SESSION_KEY_LOGIN_USER, u);
		//				log.debug("Auto logged-in using user:[" + SiteConstants.AUTO_LOGIN_NAME + "].");
		//			} else {
		//				return INPUT;
		//			}
		//		}

		return "success";
	}
}
